name: tests_tapi run_id: commands[0] env HOME: /home/jenkins env INSTALL_TAPI: **** env LANG: C.UTF-8 env OLM_TIMER1: 3000 env OLM_TIMER2: 2000 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests_tapi/bin:/opt/pyenv/bin:/tmp/venv-um9i/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PIP_USER: 0 env PYTHONHASHSEED: 997599414 env PYTHONIOENCODING: utf-8 env SSH_AUTH_SOCK: ******************************** env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests_tapi env TOX_ENV_NAME: tests_tapi env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env USE_ODL_ALT_KARAF_ENV: ./karaf221.env env USE_ODL_ALT_KARAF_INSTALL_DIR: karaf221 env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests_tapi env __TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI: true metadata pid: 5450 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests_tapi/bin/*:launch_tests.sh cmd: ./launch_tests.sh tapi exit_code: 1 using environment variables from ./karaf221.env pytest -q transportpce_tests/tapi/test01_abstracted_topology.py ...............................F.F..F.............. [100%] =================================== FAILURES =================================== ______ TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _______ self = def test_32_check_tapi_topology_T0(self): self.tapi_topo["topology-id"] = test_utils.T0_MULTILAYER_TOPO_UUID response = test_utils.transportpce_api_rpc_request( 'tapi-topology', 'get-topology-details', self.tapi_topo) self.assertEqual(response['status_code'], requests.codes.ok) nodes = response["output"]["topology"]["node"] links = response["output"]["topology"]["link"] self.assertEqual(5, len(nodes), 'Topology should contain 5 nodes') self.assertEqual(5, len(links), 'Topology should contain 5 links') self.assertEqual(4, count_object_with_double_key(links, "name", "value-name", "OTS link name"), 'Topology should contain 8 ots links') > self.assertEqual(1, count_object_with_double_key(links, "name", "value-name", "OTN link name"), 'Topology should contain 1 otn link') E AssertionError: 1 != 0 : Topology should contain 1 otn link transportpce_tests/tapi/test01_abstracted_topology.py:496: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_32_check_tapi_topology_T0 ______ TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _______ self = def test_34_check_tapi_topology_T0(self): self.tapi_topo["topology-id"] = test_utils.T0_MULTILAYER_TOPO_UUID response = test_utils.transportpce_api_rpc_request( 'tapi-topology', 'get-topology-details', self.tapi_topo) self.assertEqual(response['status_code'], requests.codes.ok) nodes = response["output"]["topology"]["node"] links = response["output"]["topology"]["link"] self.assertEqual(5, len(nodes), 'Topology should contain 5 nodes') self.assertEqual(6, len(links), 'Topology should contain 6 links') self.assertEqual(4, count_object_with_double_key(links, "name", "value-name", "OTS link name"), 'Topology should contain 4 ots links') > self.assertEqual(2, count_object_with_double_key(links, "name", "value-name", "OTN link name"), 'Topology should contain 2 otn links') E AssertionError: 2 != 0 : Topology should contain 2 otn links transportpce_tests/tapi/test01_abstracted_topology.py:535: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_34_check_tapi_topology_T0 ______ TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _______ self = def test_37_check_tapi_topology_T0(self): self.tapi_topo["topology-id"] = test_utils.T0_MULTILAYER_TOPO_UUID response = test_utils.transportpce_api_rpc_request( 'tapi-topology', 'get-topology-details', self.tapi_topo) self.assertEqual(response['status_code'], requests.codes.ok) nodes = response["output"]["topology"]["node"] links = response["output"]["topology"]["link"] self.assertEqual(6, len(nodes), 'Topology should contain 6 nodes') self.assertEqual(7, len(links), 'Topology should contain 7 links') self.assertEqual(6, count_object_with_double_key(nodes, "name", "value-name", "otsi node name"), 'Topology should contain 6 otsi nodes') self.assertEqual(5, count_object_with_double_key(links, "name", "value-name", "OTS link name"), 'Topology should contain 5 ots links') > self.assertEqual(2, count_object_with_double_key(links, "name", "value-name", "OTN link name"), 'Topology should contain 2 otn links') E AssertionError: 2 != 0 : Topology should contain 2 otn links transportpce_tests/tapi/test01_abstracted_topology.py:582: AssertionError ----------------------------- Captured stdout call ----------------------------- execution of test_37_check_tapi_topology_T0 =========================== short test summary info ============================ FAILED transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 FAILED transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 FAILED transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 3 failed, 48 passed in 675.54s (0:11:15)